import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/index'
import login from '@/views/login'
import passReset from '@/views/passReset'
import QCList from '@/views/QCList'
import QCInfo from '@/views/QCInfo'
import QCDtlInfo from '@/views/QCDtlInfo'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/login/',
      name: 'login',
      component: login
    },
    {
      path: '/pass-reset/',
      name: 'PassReset',
      component: passReset
    },
    {
      path: '/qc/',
      name: 'QCList',
      component: QCList
    },
    {
      path: '/qc/:fid',
      name: 'QCInfo',
      component: QCInfo
    },
    {
      path: '/qc-dtl/:fid',
      name: 'QCDtlInfo',
      component: QCDtlInfo
    }
  ]
})
